//
//  HYInternetViewModel.h
//  XPlayer
//
//  Created by liguoqing on 2023/8/3.
//

#import <BaseWithRAC/BaseViewModel.h>
#import "HYInternetItemViewModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface HYInternetViewModel : BaseViewModel

@property (nonatomic, strong) RACSubject *clickSubject;

@property (nonatomic, strong) RACSubject *refreshSubject;
// 是否隐藏收藏按钮
@property (nonatomic, assign) BOOL isHiddenDelete;

- (void)loadData;

- (void)reloadHistoryRecord;

- (NSInteger)numberOfItemsIsHeader:(BOOL)isHeader;

- (NSString *)headerTitleForHeaderInSection:(NSInteger)section;

- (id)cellForRowAtIndexPath:(NSIndexPath *)indexPath isHeader:(BOOL)isHeader;

- (void)didSelectItemAtIndexPath:(NSIndexPath *)indexPath isHeader:(BOOL)isHeader;

- (void)removeCurrenHistoryAtIndexPath:(NSIndexPath *)indexPath;

// 检测是否是视频播放地址
- (BOOL)checkVideoPlayUrl:(NSString *)videoUrl;

@end

NS_ASSUME_NONNULL_END
